package com.cc.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cc.common.utils.PageUtils;
import com.cc.user.entity.LoginUserEntity;
import com.cc.user.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2020-12-11 11:30:58
 */
public interface UserService extends IService<UserEntity> {

    boolean checkMobileUnique(String phone, int permission);

    UserEntity pwdlogin(LoginUserEntity loginUser);

    List<UserEntity> getAllPeople(Long permission);

    UserEntity loginByPhone(String phone, Long permission);

    int update(String phone, UserEntity userEntity);

    int updateInfo(UserEntity userEntity);

    Long getCidByPhone(String mobile);

    String getCnameByPhone(String phone);

    Page<UserEntity> getAllUserByPermission(Map<String, Object> params, int verifyStatus);

    PageUtils getUsersByMobilePermission(Map<String, Object> params);
}

